These function takes a character vector of XML for the Open Document Format and process it it various ways. odfTranslate converts some XML modified characters (such as
>) to R code (>). This function also tries to mistake proof the code by anticipating characters that might be in UTF-8 encoding to R compliant characters (e.g. OpenOffice may convert some characters. For example, " will become a UTF-8 character, which R will choke on).
stripXmlTag removes any text between "<" and="" "="">" and optionally remove leading or trailing whitespace. ">
processInLine uses odfTranslate and stripXmlTag to process in-line Sweave statements. Similarly, xml2R does the same thing for code chunks.